import { createSSRApp } from 'vue';
import App from './App.vue';
import { setupStore } from '@/store';
import uviewPlus from 'uview-plus';
import Empty from './components/Empty.vue';
// import './utils/permission.ts';

export function createApp() {
  const app = createSSRApp(App);
  setupStore(app);

  app.use(uviewPlus);
  app.component('Empty', Empty);

  return {
    app,
  };
}
